<?php



class SegmPerfilMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SegmPerfilMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('segm_perfil');
		$tMap->setPhpName('SegmPerfil');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('SEGUSU_CODIGO', 'SegusuCodigo', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addPrimaryKey('SEGOPC_ID', 'SegopcId', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addPrimaryKey('GENFUN_CODIGO', 'GenfunCodigo', 'string', CreoleTypes::VARCHAR, true, 5);

		$tMap->addColumn('SEGPER_ESTADO', 'SegperEstado', 'string', CreoleTypes::VARCHAR, true, 1);

	} 
} 